package game.module.hall.bean;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author:Pomelo.lee
 * @date:2017年9月19日 上午10:22:17
 */
public class BaseRoom {

	private String uuid;

	private Short roundCount;
	private List<Integer> playerList;

	private Set<String> ips;
	private byte prevent_cheat = 0; // 是否防作弊 1.是防作弊
	private byte is_club_room = 1; // 是否 俱乐部好友房 1.为是

	private Byte is_jindou = 0;// 是否 是金豆 1.为是

	private Integer jindou;
	
	private Map<Integer,String> ipmaps;
	
	

	public Map<Integer, String> getIpmaps() {
		return ipmaps;
	}

	public void setIpmaps(Map<Integer, String> ipmaps) {
		this.ipmaps = ipmaps;
	}

	public Byte getIs_jindou() {
		return is_jindou;
	}

	public void setIs_jindou(Byte is_jindou) {
		this.is_jindou = is_jindou;
	}

	public Integer getJindou() {
		return jindou;
	}

	public void setJindou(Integer jindou) {
		this.jindou = jindou;
	}

	public Set<String> getIps() {
		if (ips == null && prevent_cheat == 1) {
			this.ips = new HashSet<>();
		}
		return ips;
	}

	public void setIps(Set<String> ips) {
		this.ips = ips;
	}

	public byte getPrevent_cheat() {
		return prevent_cheat;
	}

	public void setPrevent_cheat(byte prevent_cheat) {
		this.prevent_cheat = prevent_cheat;
	}

	public byte getIs_club_room() {
		return is_club_room;
	}

	public void setIs_club_room(byte is_club_room) {
		this.is_club_room = is_club_room;
	}

	public Short getRoundCount() {
		return roundCount;
	}

	public void setRoundCount(Short roundCount) {
		this.roundCount = roundCount;
	}

	public List<Integer> getPlayerList() {
		return playerList;
	}

	public void setPlayerList(List<Integer> playerList) {
		this.playerList = playerList;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
}
